package com.yao.yaoojcodesandbox.security;

import java.security.Permission;

/**
 * 禁用所有安全管理器
 *
 */
public class DenySecurityManager extends SecurityManager{

    /**
     *
     * @param perm   the requested permission.
     */
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限不足,权限异常"+perm);
    }
}
